class MetodoPagamento < ActiveRecord::Base
  acts_as_paranoid unless SHOW_DELETED
  has_many :partners, :dependent => :protect
  has_many :personale, :dependent => :protect
  has_many :fattura_cliente, :dependent => :protect, :class_name => 'FatturaCliente'
  has_many :fatture_fornitore, :dependent => :protect, :class_name => 'FatturaFornitore'
  validates_presence_of :name
  validates_uniqueness_of :name, :scope => :deleted_at, :case_sensitive => false
end
